package com.thb.pay.api.payment.fallback;

import com.thb.pay.api.payment.PayInterfaceServiceApi;
import com.thb.pay.api.payment.vo.req.PayInterfacePageReq;
import com.thb.pay.api.payment.vo.req.PayInterfaceReq;
import com.thb.pay.api.payment.vo.resp.PayInterfaceVo;
import com.thb.pay.core.utils.PageResult;
import feign.hystrix.FallbackFactory;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Slf4j
@Component
public class PayInterfaceServiceApiFallbackFactory implements FallbackFactory<PayInterfaceServiceApi> {


    @Override
    public PayInterfaceServiceApi create(Throwable throwable) {
        return new PayInterfaceServiceApi() {
            @Override
            public PageResult<PayInterfaceVo> findPage(PayInterfacePageReq pageReq) {
                return null;
            }

            @Override
            public void add(PayInterfaceReq payInterfaceReq) {

            }

            @Override
            public void update(PayInterfaceReq payInterfaceReq) {

            }

            @Override
            public PayInterfaceVo getByCode(String code) {
                return null;
            }

            @Override
            public PayInterfaceVo getById(Long id) {
                return null;
            }
        };
    }
}